home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group97b.txt
/
000024_icon-group-sender _Mon Jul 14 11:24:30 1997.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
4KB
Received: from kingfisher.CS.Arizona.EDU by cheltenham.cs.arizona.edu; Tue, 15 Jul 1997 12:06:50 MST
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA03066; Tue, 15 Jul 1997 12:06:50 -0700
Date: Mon, 14 Jul 1997 11:24:30 -0700 (PDT)
From: Tom Mitchell <mitch@roll.csd.sgi.com>
To: icon-group@cs.arizona.edu, Chris Tenaglia <cdt@post.its.mcw.edu>
Subject: Re: 4th of July Sample 2
In-Reply-To: <Pine.SOL.3.96.970704075127.21094B-100000@post.its.mcw.edu>
Message-Id: <Pine.SGI.3.94.970714110508.27235C-100000@roll.csd.sgi.com>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
On Fri, 4 Jul 1997, Chris Tenaglia wrote:
> Date: Fri, 4 Jul 1997 08:02:35 -0500 (CDT)
> From: Chris Tenaglia <cdt@post.its.mcw.edu>
> To: icon-group@cs.arizona.edu
> Subject: 4th of July Sample 2
>
> And for our second offering I post a binary file editor.
> I've used it on files up to 1MB. It views the file in
> terms of 256 byte sectors. It also assumes some kind of
> vt terminal emulation. This is getting close to system
> programming and the code gets thick doing binhex conversions
> and tracking screen locations. But I pity someone trying to
> do this in perl, c, or shell script. I suppose there is
> something you could buy to do this, but I didn't know of
> any so I wrote this. It took less time than the cost justification
> paperwork to buy a piece of software.
Nifty code!
A number of my friends are lisp fans. One is using lisp as a
prototype scripting language for network diagnostics. I have
also seen makefiles for a 68010 unix kernel with generated
assembler code produced by emacs in a #!emacs type shell
batch script.
Check out emacs
The 24 MB buffer limits of gnu-emacs are not a problem with unix
tools like split and dd.
function hexlify-buffer
and
function dehexlify-buffer
====
dehexlify-buffer
Function: Convert a hexl format buffer to binary.
dehexlify-command
Variable: The command to use to unhexlify a buffer.
hexl-maybe-dehexlify-buffer
Function: Convert a hexl format buffer to binary.
hexlify-buffer
Function: Convert a binary buffer to hexl format.
hexlify-command
Variable: The command to use to hexlify a buffer.
hexlify-buffer: an interactive compiled Lisp function.
(hexlify-buffer)
Convert a binary buffer to hexl format.
=======================================
Here is my .sig in hexl format.
00000000: 2020 0a20 2054 6f6d 204d 6974 6368 656c . Tom Mitchel
00000010: 6c20 2d20 6d69 7463 6840 7367 692e 636f l - mitch@sgi.co
00000020: 6d2c 206d 6974 6368 4072 656c 6179 2e63 m, mitch@relay.c
00000030: 7364 2e73 6769 2e63 6f6d 2c20 6d69 7463 sd.sgi.com, mitc
00000040: 6840 6163 6d2e 6f72 670a 2020 2020 2020 h@acm.org.
00000050: 2020 5275 6c65 7320 6f66 2074 6875 6d62 Rules of thumb
00000060: 2061 7265 206c 696b 6520 6861 6d6d 6572 are like hammer
00000070: 732c 206e 6169 6c73 2061 6e64 2074 6875 s, nails and thu
00000080: 6d62 732e 0a20 2020 2020 2020 2049 6620 mbs.. If
00000090: 796f 7520 646f 206e 6f74 206c 6f6f 6b20 you do not look
000000a0: 6174 2077 6861 7420 796f 7572 2061 7265 at what your are
000000b0: 2064 6f69 6e67 2069 7420 6361 6e20 6875 doing it can hu
000000c0: 7274 2e0a 2020 2020 2020 2020 2121 2121 rt.. !!!!
000000d0: 2120 204f 7563 6820 2121 2121 2121 0a0a ! Ouch !!!!!!..
000000e0: 0a .
....
Tom Mitchell - mitch@sgi.com, mitch@relay.csd.sgi.com, mitch@acm.org
Rules of thumb are like hammers, nails and thumbs.
If you do not look at what your are doing it can hurt.
!!!!! Ouch !!!!!!